home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_10_07
/
1007091a
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1992-05-03
|
340 b
|
16 lines
static void do_copy (int infile, int tmp_file, long len)
{
int to_do;
char buffer [SIZE_BUFFER];
do
{
to_do = (int) (min ((long) SIZE_BUFFER, len));
read (infile, buffer, to_do);
write (tmp_file, buffer, to_do);
} while (len -= to_do);
return ;
}